package com.haocang.szgm.ui.monitor.bean;

import java.util.List;

/**
 * 创建时间：2019/6/14
 * 编 写 人：ShenC
 * 功能描述：
 */

public class MapDataBean {


    private String ID;
    private String Name;
    private String X;
    private String Y;
    private String State;
    private String Type;

    @Override
    public String toString() {
        return "MapDataBean{" +
                "ID='" + ID + '\'' +
                ", Name='" + Name + '\'' +
                ", X='" + X + '\'' +
                ", Y='" + Y + '\'' +
                ", State='" + State + '\'' +
                ", Type='" + Type + '\'' +
                '}';
    }


    public String getID() {
        return ID;
    }

    public String getName() {
        return Name;
    }

    public String getState() {
        return State;
    }

    public String getType() {
        return Type;
    }

    public float getX() {
        if (X==null  || X.equals("")) return 0;
        return Float.parseFloat(X);
    }
    public float getY() {
        if (Y==null  || Y.equals("")) return 0;
        return Float.parseFloat(Y);
    }

}
